package com.rainxing.cockpit.modules.quartz.pojo;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yabin
 * @since 2018-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("c_schedule_triggers")
public class CScheduleTriggers extends Model<CScheduleTriggers> {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    private Integer id;
    /**
     * 时间表达式
     */
    private String cron;
    /**
     * 使用状态 0：禁用   1：启用
     */
    private String status;
    /**
     * 任务名称
     */
    private String jobName;
    /**
     * 任务分组
     */
    private String jobGroup;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
